﻿using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using YmatouSeller.Notice.ApplicationService.Interface;

namespace YmatouSeller.Notice.API.Controllers
{
    public class BaseController : ApiController
    {
        #region 相关注入

        protected ISystemNoticeManageService systemNoticeManageService
        {
            get
            {
                var container = Ymatou.Unity.UnityContainerInstance.Instance;
                return container.Resolve<ISystemNoticeManageService>();
            }
        }

        #endregion
    }
}